import type { App } from 'vue'
import { setupDirectives as setupPermissionDirectives } from './permission'

// 设置所有自定义指令
export function setupDirectives(app: App): void {
  setupPermissionDirectives(app)
}

// 重导出权限相关指令和工具函数
export {
  permission,
  role,
  auth,
  permissionAll,
  hasPermission,
  hasRole,
  hasAuth
} from './permission'
